package com.tianqu.tms.entity;

import java.util.List;

import com.tianqu.tms.core.base.TmsEntity;
import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.core.exception.TmsException;
import com.tianqu.tms.dao.TmsCheckUserDao;
import com.tianqu.tms.dao.TmsDao;
import com.tianqu.tms.dto.TransCheckUserDto;
import com.tianqu.tms.dto.TransMarketCodeDto;
/**
 *
 */
public class TransCheckUser extends TmsEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6686187960933738871L;

	private long id;
	private String userId;//登录ID
	private String realName;//查验员姓名
	private String namePy;//姓名拼音


	

	public static TransCheckUser getInstance() {
		TransCheckUser trans = new TransCheckUser();
		trans.setExisting(false);
		return trans;
	}	
	
	public List<TransCheckUserDto> getTransCheckUserPy(String py) throws TmsDaoException
	{
		TmsCheckUserDao uDao = (TmsCheckUserDao) TmsDao.getInstance(TmsDao.TMS_CHECK_USER);
		List<TransCheckUserDto> r = uDao.findCheckUser(py);
		return r;
	}
	

	/**
	 * 
	 */
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getNamePy() {
		return namePy;
	}
	public void setNamePy(String namePy) {
		this.namePy = namePy;
	}
	@Override
	public void save() throws TmsDaoException, TmsException {
		// TODO Auto-generated method stub

	}

}
